{% include "public/head.html" %}
{% include "public/left.html" %}
{% include "public/header.html" %}
        <!--页面主要内容-->
        <main class="lyear-layout-content">

            <div class="container-fluid">

                <div class="row">
                    <div class="col-lg-12">
                        <div class="card">
                            <div class="card-body">

                                <form action="/admin/supplier/update" method="post" class="row">
                                    <div class="form-group col-md-12">
                                        <label for="company_name">机构名称</label>
                                        <input type="text" class="form-control" id="company_name" name="company_name" value="{{company_name}}" placeholder="机构名称" />
                                    </div>
                                    <div class="form-group col-md-12">
                                        <label for="phone">管理员账号</label>
                                        <input type="text" class="form-control" id="phone" name="phone" value="{{phone}}" placeholder="账号" />
                                    </div>
                                    <div class="form-group col-md-12">
                                        <label for="password">密码</label>
                                        <input type="password" class="form-control" id="password" name="password" value="" placeholder="密码" />
                                    </div>
                                    <div class="form-group col-md-12">
                                        <input type="hidden" name="id" value="{{id}}" />
                                        <button type="submit" class="btn btn-primary ajax-post" target-form="add-form">确 定</button>
                                        <button type="button" class="btn btn-default" id="backs">返 回</button>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>

                </div>

            </div>

        </main>
        <!--End 页面主要内容-->
    </div>
</div>
{% include "public/footer.html" %}
<script type="text/javascript">
    let backs = document.getElementById('backs');
    backs.addEventListener('click',function () {
        window.location.href = '/admin/supplier';
    });
</script>